package com.xc.service;

import com.xc.model.AddressDO;
import com.xc.request.AddressRequest;
import com.xc.vo.AddressVO;

import java.util.List;

/**
 * @author xingchen
 * @create 2021/10/17 16:44
 */
public interface AddressService {

    /**
     * 查找地址详情
     *
     * @param id
     * @return
     */
    AddressVO detail(int id);

    /**
     * 新增收获地址
     *
     * @param addressRequest
     */
    void add(AddressRequest addressRequest);

    /**
     * 根据id删除地址
     *
     * @param addressId
     * @return
     */
    int del(int addressId);

    List listUserAllAddress();
}
